import _overview from '../mock/overview';
import Mock from 'mockjs';
import { createPromise } from '../util';
import request from '../request.js';
/** 概览 */
export const overview = () => {
  return createPromise(Mock.mock(_overview['overview']));
}

/** 路口概况 */
export const junctionInfo = () => {
  return createPromise(Mock.mock(_overview['junctionInfo']));
}

/** 车辆统计 */
export const vehicleInfo = () => {
  return createPromise(Mock.mock(_overview['vehicleInfo']));
}

/** 交通事故 */
export const trafficAccident = () => {
  return createPromise(Mock.mock(_overview['trafficAccident']));
}

/** 交通流量监控 */
export const trafficVolume = () => {
  return createPromise(Mock.mock(_overview['trafficVolume']));
}

/** 路口态势监控 */
export const junctionIndex = () => {
  return createPromise(Mock.mock(_overview['junctionIndex']));
}

/** 干线态势监控 */
export const roadIndex = () => {
  return createPromise(Mock.mock(_overview['roadIndex']));
}

export const getHeatmapData = (data) => request({
  method: 'post',
  url: 'http://172.16.114.68:18084/vehicle/statistisgridvecicle',
  data
})
